/**
 * @author nttdocomo
 */
(function() {
	$LAB.script("/js/sea.js", "/js/jquery.js", "/js/underscore.js").wait().script("/js/backbone.js", "/js/aries.js").wait(function() {
		seajs.config({
			alias : {
				'jquery' : 'jquery',
				'backbone' : 'backbone',
				'underscore' : 'underscore',
				'aries' : 'aries'
			},
			base : 'http://ui.example.com/js/',
			charset : 'utf-8'
		});
		var $body = $(document.body);
		seajs.use("../../js/button/button.js", function() {
			new aries.button.Button({
				text : 'Click me',
				renderTo : $body,
				handler : {
					'click':function(){
						console.log("click")
					}
				}
			});
			new aries.button.Button({
				text : 'Click me',
				iconCls : 'add',
				iconAlign : 'left',
				renderTo : $body,
				handler : function() {
					alert('You clicked the button!');
				}
			});
			new aries.button.Button({
				text : 'Click me',
				disabled : 'true',
				renderTo : $body
			});
		})
	})
})()